import request from '@/utils/request'
export function login(data) {
  return request({
    url: 'http://localhost:7003/login',
    method: 'post',
    data
  })
}


export function getInfo(token) {
  return request({
    url: 'http://localhost:7003/getInfo',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: 'http://localhost:7003/Logout',
    method: 'get'
  })
}

export function getMenuList(roles) {
  return request({
    url: 'http://localhost:7003/getMenuRoleList',
    method: 'post',
    data:{ roles }
  })
}


